import {httpGet, httpPost, httpPut} from '@frontend/vue-common'
import {getCurrentGlobalProperties} from "@frontend/vue-common/src/app";

export const listProductCustomFieldListColumnAPI = (pageNum, pageSize, sortField, sortOrder, filter) => {
    return httpGet("/v1/soms/productCustomFieldListColumn", {
        pageNum: pageNum,
        pageSize: pageSize,
        sortField: sortField,
        sortOrder: sortOrder,
        productCustomFieldId: filter.productCustomFieldId,
		columnName: filter.columnName,
		masterFlag: filter.masterFlag,
		
    })
}

export const addProductCustomFieldListColumnAPI = (data) => {
    return httpPut("/v1/soms/productCustomFieldListColumn", data)
}

export const getProductCustomFieldListColumnAPI = (data) => {
    return httpGet(`/v1/soms/productCustomFieldListColumn/${data.id}`, {})
}

export const editProductCustomFieldListColumnAPI = (data) => {
    return httpPost(`/v1/soms/productCustomFieldListColumn/${data.id}`, data)
}

export const deleteProductCustomFieldListColumnAPI = (ids) => {
    return httpPost(`/v1/soms/batchDeleteProductCustomFieldListColumn`, {
        ids: ids,
    })
}

